﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DSS_Simplex
{
    public partial class SaveAs : Form
    {
        public SaveAs()
        {
            InitializeComponent();
        }

        public void button1_Click(object sender, EventArgs e)
        {
            try
            {
                FileCmd.SaveProject(textBox1.Text);
                this.Close();
            }
            catch (Exception ex) 
            {
                MessageBox.Show(ex.Message);
            }
        }

        private void SaveAs_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'projDataSet.project' table. You can move, or remove it, as needed.
            this.projectTableAdapter.Fill(this.projDataSet.project);

        }

        
    }
}
